import Layout from '@/layout'

export default [
  {
    path: '/erp/workOrder',
    hidden: true,
    component: Layout,
    children: [
      {
        path: '/erp/workOrder',
        name: 'WorkOrder',
        component: () => import('@/pages/erp/workOrder/index'),
        meta: { title: 'workOrder' }
      }
    ]
  },
  {
    path: '/erp/workOrder/chat/:workOrderId',
    hidden: true,
    component: Layout,
    children: [
      {
        path: '/erp/workOrder/chat/:workOrderId',
        name: 'WorkOrder',
        component: () => import('@/pages/erp/workOrder/chat/index'),
        meta: { title: 'workOrder' }
      }
    ]
  },
  {
    path: '/erp/workOrder/manage/type',
    hidden: true,
    component: Layout,
    children: [
      {
        path: '/erp/workOrder/manage/type',
        name: 'WorkOrderType',
        component: () => import('@/pages/erp/workOrder/manage/type/index'),
        meta: { title: 'workOrder type' }
      }
    ]
  },
  {
    path: '/erp/workOrder/manage/list',
    hidden: true,
    component: Layout,
    name: 'work-order',
    meta: {
      title: 'work-order',
      icon: 'el-icon-goods'
    },
    children: [
      {
        path: '/erp/workOrder/manage/list',
        name: 'WorkOrderManage',
        component: () => import('@/pages/erp/workOrder/manage/list/index'),
        meta: { title: 'workOrder manage' }
      }
    ]
  },
]
